{include file="header.html"}
<script type="text/javascript" src="templates/js/jquery.colorbox.js"
	charset="utf-8"></script>
<link href="templates/style/colorbox.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript">

$(function(){
    $('#acategory_form').validate({
        errorPlacement: function(error, element){
            //$(element).next('.noerror').hide();          
            //$(element).after(error);
        },
        success       : function(element){
        	 //$(element).next('.noerror').show();  
        	 //$(element).remove();
        	
        },
        rules : {
        	 zmm_name : {
                 required : true
             }, 
             hzshow : {
                 required : true
             }
        },
        messages : {
        	 zmm_name : {
                 required : '必填'
             },
             hzshow : {
                 required : '必填'
             }
        }
    });
    $("#hzshow").click(function(){
    	var id=$(this).attr("item");
		$w=$(window).width();
        $h=$(window).height();
        $w=$w*0.7;
        $("#hzframe").attr("src","index.php?app=datarefer&act=choosehz"+"&hzid="+id);
    	$("#hzframe").width($w);
        $.colorbox({
            width : $w+20,
            height : "650px",
            inline : true,
            href : "#hzlist"
        });
    });
    
    $("#btn1").click(function(){
    
     	 if(confirm("确定要审核吗？"))
    	 {
    		 window.location.href="index.php?app=tutor&act=checked&id={$id}";
    	 }
  
    });
    
    
    $("#btn2").click(function(){
        
    	 if(confirm("确定要取消审核吗？"))
    	 {
    		 window.location.href= "index.php?app=tutor&act=nochecked&id={$id}";
    	 }
    	  
    });

    
    
    
});

function changehz(id,name,hzid,linkman,linktel){
	$('hzframe').colorbox.close();
	
	$("#zmm_consignor").val(id);
	$("#hzshow").val(name);
}



</script>



<style>


#form11 th,#acategory_form th{
text-align: right;
    padding-right: 15px;
}



.infoTableInput, .infoTableInput2, .infoTableFile, .infoTableFile2 {
    height: 32px;
    width: 350px;
    padding: 3px 6px;
    border: 1px solid #ccc;
    outline: 0;
    font-size: 14px;
    line-height: 19px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
.formbtn {
	height: 28px;
	color: #666;
	border: 1px solid #ccc;
	background: #e2e3e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 0 10px;
}

</style>
<div style="display: none"  >
	<div id="hzlist">
	<iframe id="hzframe" width="" height="600px" frameborder="0" scrolling="no"></iframe>
	</div>
</div>

<div id="rightTop">
    <p>监控方案</p>
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=monitor_main">{$lang.manage}</a></li>
        <li><span>编辑</span></li>
    </ul>
</div>

<div class="info">

    <form method="post" enctype="multipart/form-data" id="acategory_form">
      	<table class="infoTable">

				<tr>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>监控定义:</th>
					<td>
						<input type="text" name="zmm_name" value="{$operator.zmm_name}" class="infoTableInput" id="zmm_name" >
					</td>
					
					<th class="paddingT15">货主:</th>
					<td class="paddingT15 wordSpacing5">
	
                 <input type="hidden" name="zmm_consignor" value="{$operator.zmm_consignor}" class="infoTableInput" id="zmm_consignor" >
				<input type="text" name="hzshow" item="{$operator.zmm_consignor}" value="{$consignor[$operator.zmm_consignor]}" class="infoTableInput" id="hzshow" >
						</tr>
				
				<!--{if $operator.zmm_tid}-->
				<tr>
					<th class="paddingT15">时间:</th>
					<td class="paddingT15 wordSpacing5">
						<input type="text" name="zmm_time" value="{$operator.zmm_time|date:Y-m-d H:i:s}"  class="infoTableInput" id="zmm_time" readonly="readonly" style="background-color:#eeeeee">
						
					</td>
					<th class="paddingT15">添加人员:</th>
					<td class="paddingT15 wordSpacing5">
						<input type="text"  value="{$operator.user_name}" class="infoTableInput"  readonly="readonly" style="background-color:#eeeeee" >
					
					</td>
	
					
				</tr>
					<!--{/if}-->
					
					
					<tr>
					
							<th class="paddingT15">备注:</th>
					<td      class="paddingT15 wordSpacing5" colspan="1">
						<textarea name="zmm_note" id="zmm_note"  style="width: 350px;">{$operator.zmm_note}</textarea>
						
					</td>
					</tr>
					
					
					<tr >
				<td class="ptb20" colspan="7" style="text-align:center;">
						 <input class="formbtn" align="right" type="submit" name="Submit" value="{$lang.submit}" />
           
				</td>
				</tr>
					
			</table>
			
    </form>
</div>

<!--{if $operator.zmm_tid}-->

<form method="post" enctype="multipart/form-data"
	action="index.php?app=waybill&act=subadd" style="min-height: 50px;"
	id="form11">

	
 <section class="section_maeginstyle" id="highchart" style="margin-top:70px;">
    <article class="module width_full" style="padding:0 0 20px 0;margin:0;width:100%">
	
	
	<div id="rightTop">
			<ul class="subnav">
		
		<li><a class="btn1" href="index.php?app=monitor_main&amp;act=addmonitor&amp;id={$operator.zmm_tid}"><span>{$lang.add}</span></a>
		</li>
	</ul>
	</div>
	<div class="tdare">
		
		<table width="100%" cellspacing="0" class="dataTable">
			<!--{if $fcategory}-->
			<tr class="tatr1">
				<td width="20" class="firstCell"><input type="checkbox"
					class="checkall" /></td>
				<td>监控类型</td>
				<td>监控顺序</td>
				<td style="text-align: center; width: 100px">{$lang.handler}</td>
		</tr>
			<!--{/if}-->
			<!--{foreach from=$fcategory item=s}-->
			<tr class="tatr2">
				<td class="firstCell"><input type="checkbox" class="checkitem"
					value="{$s.m_tid}" />
				</td>
				
				
				
			    <td>{$s.d_value}</td>
			    <td>{$s.m_order}</td>
			     
			     
				<td style="text-align: center;"> <a
					href="index.php?app=monitor_main&amp;act=editmonitor&amp;id={$s.m_zmmtid}&amp;selfid={$s.m_tid}">{$lang.edit}</a>
							 	|   <a
					href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=monitor_main&amp;act=dropmonitor&amp;id={$s.m_zmmtid}&amp;selfid={$s.m_tid}');">{$lang.drop}</a>
				</td>

			</tr>
			<!--{foreachelse}-->
			<tr class="no_data">
				<td colspan="7">{$lang.no_data}</td>
			</tr>
			<!--{/foreach}-->
		</table>
	<!--{if $fcategory}-->
	<div id="dataFuncs">
		<div class="pageLinks">{include file=page.bottom.html}</div>
		<div id="batchAction" class="left paddingT15">
			&nbsp;&nbsp;
			 <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="selfid" uri="index.php?app=monitor_main&act=dropmonitor&amp;id={$s.m_zmmtid}" presubmit="confirm('{$lang.drop_confirm}');" />
			&nbsp;&nbsp;
		</div>
	</div>
	<div class="clear"></div>

	<!--{/if}-->

	</div>
</form>

<!--{/if}-->

{include file="footer.html"}